package com.creative.xcx.service;

import com.creative.xcx.domain.UploadHistory;
import com.creative.core.page.TableDataInfo;
import com.creative.xcx.domain.vo.UploadHistoryVo;
import com.creative.xcx.domain.vo.UploadStatisticsVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @description 上传记录
 * @author ling
 * @date 2025-03-15
 */
@Transactional(rollbackFor = Exception.class)
public interface UploadHistoryService {

    /**
     * 新增
     */
    public Integer insert(UploadHistory uploadHistory);

    /**
     * 删除
     */
    public Integer delete(Long id);

    /**
     * 批量删除
     */

    public Integer deleteBatch(  Long[]  ids);


    /**
     * 更新
     */
    public Integer update(UploadHistory uploadHistory);

    /**
     * 根据主键 id 查询
     */
    public UploadHistory selectById(Long id);
    /**
     * 分页查询
     */
    public   List<UploadHistoryVo> selectUploadHistoryList(UploadHistory uploadHistory);

    /**
     * 批量导出
     * @author ling
     * @date 2025/03/15
     **/
    public List<UploadHistory> exportBatch(  Long[]  ids);

    List<UploadStatisticsVo> calculateUploadMaterial();

    /**
     * 统计上传数量
     *
     * @return {@link Long }
     * @author ling
     * @date 2025/04/28
     */
    Long calculateUploadNum();
}
